package com.zxf.course.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zxf.course.bean.Classes;
import com.zxf.course.bean.ClassesExample;
import com.zxf.course.mapper.ClassesMapper;
import com.zxf.course.service.ClassesService;
@Service
public class ClassesServiceImpl implements ClassesService{

	@Autowired
	private ClassesMapper classesMapper;
	
	@Override
	public List<Classes> selectAllClasses() {
		
		ClassesExample example = new ClassesExample();
		
		return classesMapper.selectByExample(example);
	}

	@Override
	public Integer selectClassesByName(String className) {
	
		return classesMapper.selectByName(className);
	}

	@Override
	public void deleteClasses(Integer id) {
		// TODO Auto-generated method stub
		
	}

}
